package com.ss.android.article.browser.view.user;

import android.support.v4.app.Fragment;
import android.view.View;

import com.a.a.a;
import com.a.a.e;

final class y implements View.OnClickListener {
    private final UserActionHistoryActivity a;

    y(UserActionHistoryActivity arg1) {
        this.a = arg1;

    }

    public final void onClick(View arg5) {
        if (UserActionHistoryActivity.a(this.a) != null) {
            Fragment v0 = UserActionHistoryActivity.b(this.a)[UserActionHistoryActivity.a(this.a).getCurrentItem()];
            if ((v0 instanceof t)) {
                if (UserActionHistoryActivity.c(this.a) == 1) {
                    UserActionHistoryActivity.a(this.a, 0);
                    ((t) v0).a(false);
                    UserActionHistoryActivity.f(this.a);
                    return;
                }

                UserActionHistoryActivity.a(this.a, 1);
                ((t) v0).a(true);
                UserActionHistoryActivity.f(this.a);
                return;
            }

            if (UserActionHistoryActivity.d(this.a) == 0 && UserActionHistoryActivity.a(this.a).getCurrentItem() == 1) {
                try {
                    a v1 = ((o) v0).a.b();
                    ((e) v1).b = android.support.design.a.c();
                    ((e) v1).c = android.support.design.a.b();
                    v1.a(new s(((o) v0)));
                    UserActionHistoryActivity.e(this.a).setEnabled(false);
                } catch (Exception v0_1) {
                    v0_1.printStackTrace();
                }
            }
            UserActionHistoryActivity.f(this.a);
        }
    }
}

